package com.wenguodong.demofirstt;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;

/*
 *@Time：2023/4/19
 *@Author：Jelly
 */
@Configuration
@ComponentScan("com.wenguodong.demofirstt")
public class ValidationConfig {

    @Bean
    public LocalValidatorFactoryBean validator() {
        return new LocalValidatorFactoryBean();
    }

}
